package springcloud.xiao.service.impl;

import org.springframework.stereotype.Service;

@Service
public class HistrixServiceImpl {


    public String ok(Long id){
        return Thread.currentThread().getName()+"ok:"+id;
    }

    public String timeOut(Long id) throws Exception{
        Thread.sleep(3000l);
        return Thread.currentThread().getName()+"timeOut:"+id;
    }
}
